package com.heima.utils.thread;

import com.heima.model.user.pojos.ApUser;

public class AppThreadLocalUtil {

    private final static ThreadLocal<ApUser> local = new InheritableThreadLocal<>();

    public static void setLocal(ApUser apUser) {
        local.set(apUser);
    }

    public static ApUser getUser() {
        return local.get();
    }

    public static void remover() {
        local.remove();
    }
}
